package cn.com.qingz.core.exception;

/**
 * 业务异常  businessException
 * @author jiulong.hu
 *
 */
public class DicmfException extends RuntimeException {
	protected String errorCode;
	protected String customMsg; 

	public String getCustomMsg() {
		return customMsg;
	}

	public void setCustomMsg(String customMsg) {
		this.customMsg = customMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	private static final long serialVersionUID = 1L;

	public DicmfException() {
		super();
	}
	
	public DicmfException(Throwable cause) {
		super(cause);
	}

	public DicmfException(String errorCode) {
		super();
		this.errorCode = errorCode;
	}

	public DicmfException(String errorCode, String message) {
		super(message);
		this.customMsg = message;
		this.errorCode = errorCode;
	}

	public DicmfException(String errorCode, Throwable cause) {
		super(cause);
		this.errorCode = errorCode;
	}

	public DicmfException(String errorCode, String message, Throwable cause) {
		super(message, cause);
		this.customMsg = message;
		this.errorCode = errorCode;
	}

}
